// import React, { BaseSyntheticEvent } from 'react';
import React from 'react';
import { Text, View } from 'react-native';

export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((...args: unknown[]) => void), s: (...class_names: string[]) => {}, d: (d: string) => string | number | unknown[]) {
	console.log('ddddddd->', d('data'));
	const arr0 = d('data') as Array<{ quote_job_name: string, contents_homework: string, personalized_setting: string, class_name: string, class_id: string, create_time: number, c_time: string }>;
	if (arr0 && arr0.length) {
		return (<View>
			<View style={{ borderBottomWidth: 1, borderBottomColor: '#ddd', paddingLeft: 20 }}>
				<Text style={{ height: 40, lineHeight: 40 }}>个性化设置：<Text style={{ color: '#333' }}>{arr0[0].personalized_setting}</Text></Text>
				<Text style={{ height: 40, lineHeight: 40 }}>班级名称：<Text style={{ color: '#333' }}>{arr0[0].class_name}</Text></Text>
			</View>
			<View style={{ paddingLeft: 20 }}>
				<Text style={{ height: 40, lineHeight: 40 }}>作业名称：<Text style={{ color: '#333' }}>{arr0[0].quote_job_name}</Text></Text>
				<Text style={{ height: 40, alignItems: 'center', lineHeight: 20 }}>作业内容：<Text style={{ color: '#333' }}>{arr0[0].contents_homework}</Text></Text>
				<Text style={{ height: 40, lineHeight: 40 }}>创建时间：<Text style={{ color: '#333' }}>{arr0[0].c_time}</Text></Text>
			</View>
		</View>);
	} else {
		return (
			<View></View>
		);
	}

}
